package com.danielepelagatti.flickrmanager
{
	import com.adobe.cairngorm.control.FrontController;
	import com.danielepelagatti.flickrmanager.commands.IFlickrCommand;
	import com.danielepelagatti.flickrmanager.commands.auth.GetFrob;
	import com.danielepelagatti.flickrmanager.commands.auth.GetToken;
	import com.danielepelagatti.flickrmanager.commands.people.GetInfo;
	import com.danielepelagatti.flickrmanager.commands.people.GetPublicPhotos;
	import com.danielepelagatti.flickrmanager.commands.people.GetUploadStatus;
	import com.danielepelagatti.flickrmanager.commands.photo.Delete;
	import com.danielepelagatti.flickrmanager.commands.photo.GetPerms;
	import com.danielepelagatti.flickrmanager.commands.photo.SetMeta;
	import com.danielepelagatti.flickrmanager.commands.photo.SetPerms;
	import com.danielepelagatti.flickrmanager.commands.photo.SetTags;
	import com.danielepelagatti.flickrmanager.commands.upload.Upload;
	import com.danielepelagatti.flickrmanager.events.AuthEvent;
	import com.danielepelagatti.flickrmanager.events.PeopleEvent;
	import com.danielepelagatti.flickrmanager.events.PhotoEvent;
	import com.danielepelagatti.flickrmanager.events.TagsEvent;
	import com.danielepelagatti.flickrmanager.events.UploadEvent;
	import com.theriabook.utils.Logger;
	import com.danielepelagatti.flickrmanager.commands.photo.Search;
	/**
	 * 
	 * @author dpelagatti
	 * 
	 */
	public class Controller extends FrontController
	{
		/**
		 * 
		 * @return 
		 * 
		 */		
		public function Controller()
		{
			initialiseCommands();
		}
		/**
		 * 
		 * 
		 */		
		public function initialiseCommands() : void
		{
			addCommand(AuthEvent.GET_FROB,				com.danielepelagatti.flickrmanager.commands.auth.GetFrob);
			addCommand(AuthEvent.GET_TOKEN,				com.danielepelagatti.flickrmanager.commands.auth.GetToken);
			
			addCommand(PeopleEvent.GET_INFO,			com.danielepelagatti.flickrmanager.commands.people.GetInfo);
			addCommand(PeopleEvent.GET_PUBLIC_PHOTOS,	com.danielepelagatti.flickrmanager.commands.people.GetPublicPhotos);
			addCommand(PeopleEvent.GET_UPLOAD_STATUS,	com.danielepelagatti.flickrmanager.commands.people.GetUploadStatus);
			
			addCommand(PhotoEvent.DELETE,				com.danielepelagatti.flickrmanager.commands.photo.Delete);
			addCommand(PhotoEvent.GET_INFO,				com.danielepelagatti.flickrmanager.commands.photo.GetInfo);
			addCommand(PhotoEvent.GET_PERMS,			com.danielepelagatti.flickrmanager.commands.photo.GetPerms);
			
			addCommand(PhotoEvent.SET_TAGS,				com.danielepelagatti.flickrmanager.commands.photo.SetTags);
			addCommand(PhotoEvent.SET_META,				com.danielepelagatti.flickrmanager.commands.photo.SetMeta);
			addCommand(PhotoEvent.SET_PERMS,			com.danielepelagatti.flickrmanager.commands.photo.SetPerms);
			addCommand(PhotoEvent.SEARCH,				com.danielepelagatti.flickrmanager.commands.photo.Search);
			
			addCommand(UploadEvent.UPLOAD, 				com.danielepelagatti.flickrmanager.commands.upload.Upload);
			
			//addCommand(TagsEvent.GET_LIST_PHOTO,		com.danielepelagatti.flickrmanager.commands.tags.GetListPhoto);
		}
	}
}